package com.huangpuweb.api.model;


import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class DiscoverDisposalMapper implements RowMapper<DiscoverDisposal> {
    @Override
    public DiscoverDisposal mapRow(ResultSet resultSet, int i) throws SQLException {
        DiscoverDisposal discoverDisposal=new DiscoverDisposal();
        discoverDisposal.setMonth(resultSet.getInt("month"));
        discoverDisposal.setCount(resultSet.getInt("count"));
        return discoverDisposal;
    }
}
